package com.ly.hotel.spainterface.jxd.adapter;

import android.app.Fragment;
import android.app.FragmentManager;


import java.util.List;

/**
 * Created by ThinkPad on 2018/3/22.
 */

public class StatusFragmentAdapter extends MyFragmentPagerAdapter {

    private FragmentManager fm;
    private List<Fragment> fragments;

    public StatusFragmentAdapter(FragmentManager fm, List<Fragment> fragments){
        super(fm,fragments);
        this.fm = fm;
        this.fragments = fragments;
    }

    @Override
    public Fragment getItem(int position) {
        return fragments.get(position);
    }

    @Override
    public int getItemPosition(Object object) {
        return POSITION_NONE;
    }

    @Override
    public int getCount() {
        return fragments.size();
    }

}
